package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseInStorage", catalog="Id")
public class TcgPurchaseInStorage extends BaseEntity<TcgPurchaseInStorage> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="PurchasePreStorageBid", nameJava="purchasePreStorageBid", typeDataBase="varchar")
	private String purchasePreStorageBid;
	@YsField(nameDataBase="PurchaseContractBid", nameJava="purchaseContractBid", typeDataBase="varchar")
	private String purchaseContractBid;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="PartnerBankInfoId", nameJava="partnerBankInfoId", typeDataBase="varchar")
	private String partnerBankInfoId;
	@YsField(nameDataBase="EstimatedArrivalTime", nameJava="estimatedArrivalTime", typeDataBase="char")
	private String estimatedArrivalTime;
	@YsField(nameDataBase="LogisticsMode", nameJava="logisticsMode", typeDataBase="varchar")
	private String logisticsMode;
	@YsField(nameDataBase="TrackingNumber", nameJava="trackingNumber", typeDataBase="varchar")
	private String trackingNumber;
	@YsField(nameDataBase="PurchaseAppointOrderBid", nameJava="purchaseAppointOrderBid", typeDataBase="varchar")
	private String purchaseAppointOrderBid;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="CodeMerge", nameJava="codeMerge", typeDataBase="varchar")
	private String codeMerge;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="SubName", nameJava="subName", typeDataBase="varchar")
	private String subName;
	@YsField(nameDataBase="SubCodeMerge", nameJava="subCodeMerge", typeDataBase="varchar")
	private String subCodeMerge;
	@YsField(nameDataBase="SubBomNumber", nameJava="subBomNumber", typeDataBase="int")
	private Integer subBomNumber;
	@YsField(nameDataBase="SubPurchasePrice", nameJava="subPurchasePrice", typeDataBase="decimal")
	private BigDecimal subPurchasePrice;
	@YsField(nameDataBase="SubStorageNum", nameJava="subStorageNum", typeDataBase="int")
	private Integer subStorageNum;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="StorageStatus", nameJava="storageStatus", typeDataBase="tinyint")
	private Integer storageStatus;
	@YsField(nameDataBase="AssembledStatus", nameJava="assembledStatus", typeDataBase="tinyint")
	private Integer assembledStatus;
	@YsField(nameDataBase="DocumentSource", nameJava="documentSource", typeDataBase="tinyint")
	private Integer documentSource;
	@YsField(nameDataBase="PurchasePreStorageSonId", nameJava="purchasePreStorageSonId", typeDataBase="bigint")
	private Long purchasePreStorageSonId;
	@YsField(nameDataBase="PurchaseAppointOrderProductComponentId", nameJava="purchaseAppointOrderProductComponentId", typeDataBase="bigint")
	private Long purchaseAppointOrderProductComponentId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseInStorage setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgPurchaseInStorage setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcgPurchaseInStorage setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getPurchasePreStorageBid() {
		return purchasePreStorageBid;
	}
	public TcgPurchaseInStorage setPurchasePreStorageBid(String purchasePreStorageBid) {
		this.purchasePreStorageBid = purchasePreStorageBid;
		return this;
	}
	public String getPurchaseContractBid() {
		return purchaseContractBid;
	}
	public TcgPurchaseInStorage setPurchaseContractBid(String purchaseContractBid) {
		this.purchaseContractBid = purchaseContractBid;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TcgPurchaseInStorage setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public String getPartnerBankInfoId() {
		return partnerBankInfoId;
	}
	public TcgPurchaseInStorage setPartnerBankInfoId(String partnerBankInfoId) {
		this.partnerBankInfoId = partnerBankInfoId;
		return this;
	}
	public String getEstimatedArrivalTime() {
		return estimatedArrivalTime;
	}
	public TcgPurchaseInStorage setEstimatedArrivalTime(String estimatedArrivalTime) {
		this.estimatedArrivalTime = estimatedArrivalTime;
		return this;
	}
	public String getLogisticsMode() {
		return logisticsMode;
	}
	public TcgPurchaseInStorage setLogisticsMode(String logisticsMode) {
		this.logisticsMode = logisticsMode;
		return this;
	}
	public String getTrackingNumber() {
		return trackingNumber;
	}
	public TcgPurchaseInStorage setTrackingNumber(String trackingNumber) {
		this.trackingNumber = trackingNumber;
		return this;
	}
	public String getPurchaseAppointOrderBid() {
		return purchaseAppointOrderBid;
	}
	public TcgPurchaseInStorage setPurchaseAppointOrderBid(String purchaseAppointOrderBid) {
		this.purchaseAppointOrderBid = purchaseAppointOrderBid;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcgPurchaseInStorage setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TcgPurchaseInStorage setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TcgPurchaseInStorage setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getCodeMerge() {
		return codeMerge;
	}
	public TcgPurchaseInStorage setCodeMerge(String codeMerge) {
		this.codeMerge = codeMerge;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TcgPurchaseInStorage setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public String getSubName() {
		return subName;
	}
	public TcgPurchaseInStorage setSubName(String subName) {
		this.subName = subName;
		return this;
	}
	public String getSubCodeMerge() {
		return subCodeMerge;
	}
	public TcgPurchaseInStorage setSubCodeMerge(String subCodeMerge) {
		this.subCodeMerge = subCodeMerge;
		return this;
	}
	public Integer getSubBomNumber() {
		return subBomNumber;
	}
	public TcgPurchaseInStorage setSubBomNumber(Integer subBomNumber) {
		this.subBomNumber = subBomNumber;
		return this;
	}
	public BigDecimal getSubPurchasePrice() {
		return subPurchasePrice;
	}
	public TcgPurchaseInStorage setSubPurchasePrice(BigDecimal subPurchasePrice) {
		this.subPurchasePrice = subPurchasePrice;
		return this;
	}
	public Integer getSubStorageNum() {
		return subStorageNum;
	}
	public TcgPurchaseInStorage setSubStorageNum(Integer subStorageNum) {
		this.subStorageNum = subStorageNum;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TcgPurchaseInStorage setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TcgPurchaseInStorage setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public Integer getStorageStatus() {
		return storageStatus;
	}
	public TcgPurchaseInStorage setStorageStatus(Integer storageStatus) {
		this.storageStatus = storageStatus;
		return this;
	}
	public Integer getAssembledStatus() {
		return assembledStatus;
	}
	public TcgPurchaseInStorage setAssembledStatus(Integer assembledStatus) {
		this.assembledStatus = assembledStatus;
		return this;
	}
	public Integer getDocumentSource() {
		return documentSource;
	}
	public TcgPurchaseInStorage setDocumentSource(Integer documentSource) {
		this.documentSource = documentSource;
		return this;
	}
	public Long getPurchasePreStorageSonId() {
		return purchasePreStorageSonId;
	}
	public TcgPurchaseInStorage setPurchasePreStorageSonId(Long purchasePreStorageSonId) {
		this.purchasePreStorageSonId = purchasePreStorageSonId;
		return this;
	}
	public Long getPurchaseAppointOrderProductComponentId() {
		return purchaseAppointOrderProductComponentId;
	}
	public TcgPurchaseInStorage setPurchaseAppointOrderProductComponentId(Long purchaseAppointOrderProductComponentId) {
		this.purchaseAppointOrderProductComponentId = purchaseAppointOrderProductComponentId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseInStorage setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseInStorage setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseInStorage setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseInStorage tcgPurchaseInStorage(
		String bid,
		String remark,
		String purchasePreStorageBid,
		String purchaseContractBid,
		String companyVid,
		String partnerBankInfoId,
		String estimatedArrivalTime,
		String logisticsMode,
		String trackingNumber,
		String purchaseAppointOrderBid,
		String vgsbm,
		String productCode,
		String productName,
		String codeMerge,
		String subCode,
		String subName,
		String subCodeMerge,
		Integer subBomNumber,
		BigDecimal subPurchasePrice,
		Integer subStorageNum,
		Long stockControlId,
		String chw,
		Integer storageStatus,
		Integer assembledStatus,
		Integer documentSource,
		Long purchasePreStorageSonId,
		Long purchaseAppointOrderProductComponentId,
		Integer status
			) {
		TcgPurchaseInStorage entity = new TcgPurchaseInStorage();
		entity.setBid(bid);
		entity.setRemark(remark);
		entity.setPurchasePreStorageBid(purchasePreStorageBid);
		entity.setPurchaseContractBid(purchaseContractBid);
		entity.setCompanyVid(companyVid);
		entity.setPartnerBankInfoId(partnerBankInfoId);
		entity.setEstimatedArrivalTime(estimatedArrivalTime);
		entity.setLogisticsMode(logisticsMode);
		entity.setTrackingNumber(trackingNumber);
		entity.setPurchaseAppointOrderBid(purchaseAppointOrderBid);
		entity.setVgsbm(vgsbm);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setCodeMerge(codeMerge);
		entity.setSubCode(subCode);
		entity.setSubName(subName);
		entity.setSubCodeMerge(subCodeMerge);
		entity.setSubBomNumber(subBomNumber);
		entity.setSubPurchasePrice(subPurchasePrice);
		entity.setSubStorageNum(subStorageNum);
		entity.setStockControlId(stockControlId);
		entity.setChw(chw);
		entity.setStorageStatus(storageStatus);
		entity.setAssembledStatus(assembledStatus);
		entity.setDocumentSource(documentSource);
		entity.setPurchasePreStorageSonId(purchasePreStorageSonId);
		entity.setPurchaseAppointOrderProductComponentId(purchaseAppointOrderProductComponentId);
		entity.setStatus(status);
		return entity;
	}
}